/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sbbs.springboot.sample9;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 *
 * @author Administrator
 */
@WebListener
public class MyServletContextListener implements ServletContextListener {
 
         @Override
         public void contextDestroyed(ServletContextEvent arg0) {
                   System.out.println("ServletContex销毁");
         }
 
         @Override
         public void contextInitialized(ServletContextEvent arg0) {
                    System.out.println("ServletContex初始化");
         }
}